<?php
/* @var $this CourseController */
/* @var $model Course */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'course-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'course_name'); ?>
		<?php echo $form->textField($model,'course_name',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'course_name'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'teacher_info'); ?>
        <?php echo $form->textArea($model,'teacher_info',array('rows'=>6, 'cols'=>50)); ?>
       	<script type="text/javascript">
			var editor = new UE.ui.Editor();
			editor.render("Course_teacher_info");
		</script>
      <?php echo $form->error($model,'teacher_info'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'brief'); ?>
        <?php echo $form->textArea($model,'brief',array('rows'=>6, 'cols'=>50)); ?>
    	<script type="text/javascript">
			var editor = new UE.ui.Editor();
			editor.render("Course_brief");
		</script>
    <?php echo $form->error($model,'brief'); ?>
    </div>

	<div class="row">
		<?php echo $form->labelEx($model,'description'); ?>
		<?php echo $form->textArea($model,'description',array('rows'=>6, 'cols'=>50)); ?>
	  	<script type="text/javascript">
			var editor = new UE.ui.Editor();
			editor.render("Course_description");
		</script>
	</div>
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->
